package com.example.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("product_stock_logs")
public class ProductStockLog {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long productId;
    private Integer changeType;  // 1-入库 2-出库 3-锁定 4-解锁
    private Integer changeQuantity;
    private Integer beforeStock;
    private Integer afterStock;
    private Long orderId;
    private LocalDateTime createdAt;
} 